
module.exports = app => {
    const { DATE, STRING, JSON } = app.Sequelize;
    const Role = app.model.define('b_c_user_role', {
        //id: { type: INTEGER(11), primaryKey: true, autoIncrement: true },
        role_name: { type: STRING(255), allowNull: false, primaryKey: true, },
        note: { type: STRING(255), allowNull: true },
        ui: { type: JSON, allowNull: true },
        dev: { type: JSON, allowNull: true },
        created_at: { type: DATE, allowNull: false,defaultValue: new Date()  },
        updated_at: { type: DATE, allowNull: false, defaultValue: new Date()  },
    }, {
        paranoid: false,
        timestamps: true,
    });

    return Role;
};
export {}